<?php
/********************************************************************
Product		: Plotalot
Date		: 7 August 2011
Copyright	: Les Arbres Design 2009-2011
Contact		: http://extensions.lesarbresdesign.info
Licence		: GNU General Public License
*********************************************************************/

defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');
jimport('joomla.html.html');

require_once JPATH_COMPONENT.DS.'helpers'.DS.'view_helper.php';

class PlotalotViewHelp extends JView
{
function display($tpl = null)
{
	JToolBarHelper::title(LA_COMPONENT_NAME.': <small><small>'.JText::_('COM_PLOTALOT_JHELP').'</small></small>', 'plotalot.png');
	JToolBarHelper::cancel('cancel');

	$link_doc = "http://extensions.lesarbresdesign.info/en/plotalot/plotalot-user-guide";
	$link_download = "http://extensions.lesarbresdesign.info/en/plotalot/plotalot-user-guide";
	$link_version = "http://extensions.lesarbresdesign.info/en/version-history/plotalot";
	$link_rating = "http://extensions.joomla.org/extensions/financial/graphs-and-charts/11717";
	$link_chrisguk = "http://extensions.joomla.org/extensions/owner/chrisguk";
	$link_LAextensions = "http://extensions.lesarbresdesign.info/";

	$xml_array = JApplicationHelper::parseXMLInstallFile(JPATH_COMPONENT_ADMINISTRATOR.DS.'plotalot.xml');
	$plotalot_version = $xml_array['version'];

	// show the help screen

	?>
	<form action="index.php" method="post" name="adminForm" id="adminForm">
		<input type="hidden" name="option" value="<?php echo LA_COMPONENT ;?>" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="controller" value="help" />		
	</form>

	<p style="color:#0B55C4; font-size:15px"><?php echo LA_COMPONENT_NAME.': '.JText::_('COM_PLOTALOT_HELP_TITLE');?></p>

	<p><?php echo JText::_('COM_PLOTALOT_JVERSION').' '.$plotalot_version;?></p>
	<p><?php echo JText::_('COM_PLOTALOT_HELP_PLUGIN').' '.JHTML::link($link_download, "www.lesarbresdesign.info", 'target="_blank"');?></p>
	<p><?php echo JText::_('COM_PLOTALOT_HELP_DOC').' '.JHTML::link($link_doc, "www.lesarbresdesign.info", 'target="_blank"');?></p>
	<p><?php echo JText::_('COM_PLOTALOT_HELP_CHECK').' '.JHTML::link($link_version, 'Les Arbres Design - Plotalot', 'target="_blank"');?></p>
	<p><?php echo JText::sprintf('COM_PLOTALOT_HELP_RATING', LA_COMPONENT_NAME).' '.JHTML::link($link_rating, 'Joomla! Extensions', 'target="_blank"');?></p>
	<p><?php echo JText::sprintf('COM_PLOTALOT_HELP_LES_ARBRES', LA_COMPONENT_NAME, JHTML::link($link_chrisguk, 'Joomla! Extensions', 'target="_blank"')).' '.JHTML::link($link_LAextensions, 'Les Arbres Design', 'target="_blank"');?><p>

	<table>
		<tr>
		</tr>
		<tr>
			<td><?php echo JText::sprintf('COM_PLOTALOT_HELP_FUND_ONE', LA_COMPONENT_NAME);?><br />
				<?php echo JText::_('COM_PLOTALOT_HELP_FUND_TWO');?>
			</td>
			<td>
				<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
					<input type="hidden" name="cmd" value="_s-xclick">
					<input type="hidden" name="hosted_button_id" value="5DSLW6K9KULKS" />
					<input type="hidden" name="item_name" value="Plotalot">
					<input type="image" src="<?php echo JText::_('COM_PLOTALOT_HELP_DONATE_BUTTON');?>" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
					<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
				</form>
			</td>
		</tr>
	</table>
	<?php
}
}
				
			


			
